import request from '@/utils/request'

// 查询文件上传记录列表
export function listRecord(query) {
  return request({
    url: '/module/record/list',
    method: 'get',
    params: query
  })
}

// 查询文件上传记录详细
export function getRecord(id) {
  return request({
    url: '/module/record/' + id,
    method: 'get'
  })
}

// 新增文件上传记录
export function addRecord(data) {
  return request({
    url: '/module/record',
    method: 'post',
    data: data
  })
}

// 修改文件上传记录
export function updateRecord(data) {
  return request({
    url: '/module/record',
    method: 'put',
    data: data
  })
}

// 删除文件上传记录
export function delRecord(id) {
  return request({
    url: '/module/record/' + id,
    method: 'delete'
  })
}

// 导出文件上传记录
export function exportRecord(query) {
  return request({
    url: '/module/record/export',
    method: 'get',
    params: query
  })
}

export function addApk(data) {
  return request({
    url: '/module/record/uploadFile',
    method: 'POST',
    data,
  })
}
